package com.yn.common.request.sc;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * 车辆管理表
 * Request
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "CarManageRequest对象", description = "车辆管理表")
public class CarManageRequest implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "车牌号")
    @NotBlank(message = "车牌号不能为空")
    @Length(max = 30, message = "车牌号最多30个字符")
    private String carNumber;

    @ApiModelProperty(value = "驾驶证")
    @NotBlank(message = "驾驶证不能为空")
    @Length(max = 100, message = "驾驶证最多100个字符")
    private String driverLicense;

    @ApiModelProperty(value = "行驶证")
    @NotBlank(message = "行驶证不能为空")
    @Length(max = 100, message = "行驶证最多100个字符")
    private String drivingLicense;

    @ApiModelProperty(value = "保险证明")
    @NotBlank(message = "保险证明不能为空")
    @Length(max = 100, message = "保险证明最多100个字符")
    private String insuranceCertificate;

    @ApiModelProperty(value = "车长姓名")
    @NotBlank(message = "车长姓名不能为空")
    @Length(max = 50, message = "车长姓名最多50个字符")
    private String conductorName;

    @ApiModelProperty(value = "车辆联系电话")
    @NotBlank(message = "车辆联系电话不能为空")
    @Length(max = 30, message = "车辆联系电话最多30个字符")
    private String carLinkNumber;

    @ApiModelProperty(value = "司机真实姓名")
    @NotBlank(message = "司机真实姓名不能为空")
    @Length(max = 20, message = "车辆联系电话最多20个字符")
    private String realName;

    @ApiModelProperty(value = "司机身份证号")
    @NotBlank(message = "司机身份证号不能为空")
    @Length(max = 20, message = "车长身份证号最多20个字符")
    private String cardId;

    @ApiModelProperty(value = "司机性别")
    @NotBlank(message = "司机性别不能为空")
    private Integer sex;

    @ApiModelProperty(value = "车长身份证号")
    @NotBlank(message = "车长身份证号不能为空")
    @Length(max = 20, message = "车长身份证号最多20个字符")
    private String conductorIdNumber;

    @ApiModelProperty(value = "区域编码")
    @NotBlank(message = "区域编码不能为空")
    @Length(max = 100, message = "区域编码最多100个字符")
    private String regionCode;

    @ApiModelProperty(value = "备注")
    private String remark;

}
